-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: clarify that path.isAbsolute on windows accepts / and \ #8291
Conversation
``` | ||
|
||
*Note*: On Windows, the `path.isAbsolute()` method will accept both forward | ||
slash (`/`) and backwards slash (`\`) characters as path delimiters. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/backwards/backward/ ? I'm not a native speaker but "backward slash" has more occurrences on Google.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
btw, this sounds a bit overly specific, although I might be wrong… is there anything in the Node API where /
isn’t accepted on Windows?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@addaleax ... good point...
bf100e1
to
08b12f2
Compare
LGTM. |
LGTM |
Landed in 86067f0. Thanks! |
Fixes: nodejs#6520 PR-URL: nodejs#8291 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
doc
Description of change
Clarify that path.isAbsolute() on windows accepts / and \ as path delims
Fixes: #6520